home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 3 / 003.d81 / dos part 5 < prev    next >
Text File  |  2022-08-26  |  3KB  |  141 lines

  1.      -- Dos & Don'ts-Part 5 --
  2.  
  3.  
  4. The next command we will discuss is
  5.  
  6. another 'Wedge Special'.  It is called
  7.  
  8. the Display Directory command.  The
  9.  
  10. Directory of a disk is a list of the
  11.  
  12. programs and other files on the disk.
  13.  
  14. Without the Wedge, it is virtually im-
  15.  
  16. possible to get a Directory Listing
  17.  
  18. without erasing the program currently
  19.  
  20. in the computer's memory.  That is be-
  21.  
  22. cause the Directory is intended to be
  23.  
  24. LOADed into memory like a program, and
  25.  
  26. then LISTed.  Of course, LOADing one
  27.  
  28. program erases any other that might be
  29.  
  30. in memory!  But with the Wedge, you
  31.  
  32. can view the Directory without losing
  33.  
  34. your current program.  Just type:
  35.  
  36.    @$
  37.  
  38. and you will see something like:
  39.  
  40.    0 'MY FIRST DISK  ' M1 2A (reverse)
  41.    1   'DOS WEDGE'         PRG
  42.    5   'DOS 5.1'           PRG
  43.    18  'MENU'              PRG
  44.    9   'MENU FILE'         SEQ
  45.  
  46. The first line is in reverse colors.
  47.  
  48. It says that Drive #0 (The 1541 only
  49.  
  50. has 1 drive so you can ignore this)
  51.  
  52. has a disk in it that was formatted
  53.  
  54. (NEWed) with the name 'MY FIRST DISK'
  55.  
  56. and the ID 'M1'.  The 1541 uses DOS V2
  57.  
  58. and 4040 format (format A), thus the
  59.  
  60. '2A' in the header.
  61.  
  62.  
  63. The rest of the lines list the files
  64.  
  65. on the disk.  For each file, the num-
  66.  
  67. ber of blocks (4 blocks = 1K) that the
  68.  
  69. file uses is displayed, followed by
  70.  
  71. the name of the file itself, followed
  72.  
  73. by the file type.  You should only
  74.  
  75. see 4 types on any of your disks.
  76.  
  77. These types are PRG for PRoGram
  78.  
  79. (either BASIC or binary),  USR for
  80.  
  81. USeR (another version of SEQ), SEQ
  82.  
  83. for SEQuential (usually a text or
  84.  
  85. data file), and REL for RELative (a
  86.  
  87. kind of data file).
  88.  
  89.  
  90. Okay.  Let's suppose that you wrote
  91.  
  92. the program called 'MENU' on the disk.
  93.  
  94. Now let's suppose you make some modi-
  95.  
  96. fications to the program, and now you
  97.  
  98. want to save the changed version.  You
  99.  
  100. type SAVE 'MENU',8 ,but to your hor-
  101.  
  102. ror, the red light starts flashing af-
  103.  
  104. ter less than a second!  The drive
  105.  
  106. didn't make any clattering noise or
  107.  
  108. anything, but the drive says "ERROR"
  109.  
  110. with that red LED!  Just request the
  111.  
  112. Disk Status (with '@' or '>'), and you
  113.  
  114. see '63, FILE EXISTS,18,01'.  The nice
  115.  
  116. folks at Commodore didn't want you to
  117.  
  118. accidently save over an existing file,
  119.  
  120. so they don't let you do it.  There is
  121.  
  122. a "Save with Replace" command, but as
  123.  
  124. I warned you in the first issue, DON'T
  125.  
  126. USE IT!!  (Serious Bug There!)  In-
  127.  
  128. stead, you have two choices.
  129.  
  130.  
  131. The easiest but less safe way is to
  132.  
  133. remove the old copy, then save the new
  134.  
  135. version.  Thus, we introduce a new
  136.  
  137. maintenance command, 'SCRATCH'.
  138.  
  139.  
  140. ---------Continued in Part 6----------
  141.